<?php
/* *****************************
*
*   User: 袁校宇
*   Date: 2018/7/22
*   Time: 7:11 AM
*
*******************************/

namespace app\cms\home;

use think\Controller;
use think\Db;

class Lightrainnews extends Controller{

    public function index(){
        $data=Db::name('wenzhang')
            ->order('id desc')
            ->paginate(20);
        $this->assign('page',$data->render());
        $this->assign('data',$data);
        return $this->fetch();
    }
}